package cn.selfiot.iotman.core;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 窗口间参数传递的容器
 *
 * @author hugo
 * @since 2020/8/7
 */
public class StageParams {
    private static final Map<Object, Object> paramsMap = new ConcurrentHashMap<>();
    
    public StageParams set(Object key, Object value) {
        paramsMap.put(key, value);
        return this;
    }
    
    public Object get(Object key) {
        return paramsMap.get(key);
    }
}
